package jjj;

class Test2 {
    public static void main(String[] args) {
        int x = 2, a = 0;
        switch (x) {
            case 1: a = a + 1;
            case 2: a = a + 2;
            case 3: a = a + 3;
            default: a = a - 1; }
        System.out.println(a);
}}